﻿<!--
//*****************************************************************************
//
//  Silver Games - Checkers
//  Copyright © 2009 Randi Relander
//      <rjrelander@users.sourceforge.net>
//
//  This program is free software: you can redistribute it and/or modify
//  it under the terms of the GNU General Public License as published by
//  the Free Software Foundation, either version 3 of the License, or
//  (at your option) any later version.
//
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.
//
//  You should have received a copy of the GNU General Public License
//  along with this program.  If not, see <http://www.gnu.org/licenses/>.
//
//*****************************************************************************
-->

<UserControl x:Class="Checkers.Client.Tile"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  Width="50" Height="50">
	<UserControl.Resources>
		<ResourceDictionary>
			<ResourceDictionary.MergedDictionaries>
				<ResourceDictionary Source="CheckersResources.xaml"/>
			</ResourceDictionary.MergedDictionaries>
		</ResourceDictionary>
	</UserControl.Resources>
    
    <Grid x:Name="LayoutRoot" Background="Transparent">

        <Rectangle x:Name="mRedBase" Fill="Red" Visibility="Collapsed" />

        <Rectangle x:Name="mBlackBase" Fill="Black" Visibility="Collapsed" />

        <Rectangle x:Name="mSelect1" Fill="Yellow" Opacity="0" />

        <Rectangle x:Name="mSelect2" Fill="Cyan" Opacity="0" />

        <Rectangle x:Name="mHilight"
            Fill="Transparent" Stroke="White" StrokeThickness="4" Opacity="0" />

        <Grid.Resources>

            <Storyboard x:Name="mSelectAnimation1">
                <DoubleAnimation
                    Storyboard.TargetName="mSelect1"
                    Storyboard.TargetProperty="Opacity"
                    From="1" To="0.75" Duration="0:0:00.5" 
                    RepeatBehavior="Forever" AutoReverse="True" />
            </Storyboard>

            <Storyboard x:Name="mSelectAnimation2">
                <DoubleAnimation
                    Storyboard.TargetName="mSelect2"
                    Storyboard.TargetProperty="Opacity"
                    From="1" To="0.75" Duration="0:0:00.5" 
                    RepeatBehavior="Forever" AutoReverse="True" />
            </Storyboard>

        </Grid.Resources>

    </Grid>
    
</UserControl>
